<template>
  <div>
    御剑乘风来,除魔天地间!son ==={{ val }}
    <el-input v-model.number="q" @input="$emit('change', q)"></el-input>
  </div>
</template>
<script>
export default {
  name: '',
  model: {
    event: 'change',
    prop: 'val' //  重新定义v-model传过来的默认值value
  },
  props: {
    // value: {
    //   type: Number
    // }
    val: {
      type: Number
    }
  },
  data () {
    return {
      q: ''
    }
  },
  created () {},
  computed: {},
  methods: {}
}
</script>
<style lang='less'  scoped>
</style>
